home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
DEV
/
I-Z
/
TransSkel.cpt
/
miniSkel.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1987-01-11
|
1KB
|
38 lines
{ TransSkel demonstration: Minimal application}
{This program does nothing but put up an Apple menu}
{ with desk accessories , and a File menu }
{ with a Quit item . The user can run DA 's until Quit is selected or command-Q is typed.}
{The project should include this file , TransSkel.pas}
{ ( or a project built from TransSkel.pas ) , MacPasLib and MacTraps .}
{27 June 1986 Paul DuBois}
{ 11 January 1987 Owen Hartnett }
{Ωhm Software Co. 163 Richard Drive, Tiverton, RI 02878 }
PROGRAM miniSkel;
USES
TransSkelpas;
VAR
m : MenuHandle;
PROCEDURE DoFileMenu (item : integer); { ignored - there's only quit }
BEGIN
SkelWhoa; { Tell SkelMain to quit }
END;
BEGIN
Skelinit; { Initialize }
SkelApple('', NIL); { Handle Desk Accessories }
m := NewMenu(2, 'File'); { Create Menu }
AppendMenu(m, 'Quit/Q');
SkelMenu(m, @DoFileMenu, NIL); { Tell Transkel to handle it }
SkelMain; { loop til quit selected }
SkelClobber; { clean up }
END.